Set TTS to Play Specified Sound Effect
Function:
magicbox.set_tts_effect(port, index)Description: set text-to-speech modules to play specified sound effect
Required parameter:
- port: controller port (the value is 2)
- index: sound effect index. data type: int, range: 1~8
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magicbox.set_tts_effect(port=2, index=1)Set the text-to-speech module connected to Port 2 of controller to play the first sound effect.